def reversestring(astring):
    stringList = []
    for i in astring:
        stringList.insert(0, i)
    print "".join(stringList)

reversestring(raw_input("your string: "))
